<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Add query to multi-query batch</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.sphinxclient.html">SphinxClient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sphinxclient.buildexcerpts.html">SphinxClient::buildExcerpts</a></div>
 <div class="up"><a href="class.sphinxclient.html">SphinxClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sphinxclient.addquery" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SphinxClient::addQuery</h1>
  <p class="verinfo">(PECL sphinx &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">SphinxClient::addQuery</span> &mdash; <span class="dc-title">Add query to multi-query batch</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sphinxclient.addquery-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>SphinxClient::addQuery</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$index</code><span class="initializer"> = &quot;*&quot;</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$comment</code><span class="initializer"> = &quot;&quot;</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Adds query with the current settings to multi-query batch. This method
   doesn&#039;t affect current settings (sorting, filtering, grouping etc.) in any way.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-sphinxclient.addquery-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">query</code></em></dt>

     <dd>

      <p class="para">
      Query string.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">index</code></em></dt>

     <dd>

      <p class="para">
       An index name (or names).
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">comment</code></em></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sphinxclient.addquery-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an index in an array of results that will be returned
   by <a href="sphinxclient.runqueries.html" class="xref">SphinxClient::runQueries</a> call or false on error.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-sphinxclient.addquery-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><a href="sphinxclient.runqueries.html" class="xref">SphinxClient::runQueries</a></li>
    <li class="member"><a href="sphinxclient.query.html" class="xref">SphinxClient::query</a></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.sphinxclient.html">SphinxClient</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sphinxclient.buildexcerpts.html">SphinxClient::buildExcerpts</a></div>
 <div class="up"><a href="class.sphinxclient.html">SphinxClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
